package cn.com.my.yes1;

import java.text.DecimalFormat;

public class DataTest {

	public static void main(String[] args) {
		String db = "3.0";
		DecimalFormat df = new DecimalFormat("#");
		DecimalFormat df1 = new DecimalFormat("#.#");
		String db2 = df.format(Double.valueOf(db));
		String db3 = df1.format(Double.valueOf(db));
		System.out.println(Double.valueOf(db2));
		System.out.println(Double.valueOf(db3));
		System.out.println(Double.valueOf(db).floatValue() == Double.valueOf(db3).floatValue());
	}

}
